package com.igeekhome.units;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain=true)
public class TableResultBean extends  ResultBean {
    private static final Integer SUCCESS = 0;
    private Long Count;

    public TableResultBean(Integer code, String msg,Long count, Object list ) {
        super(code, msg, list);
        Count = count;
    }

    public static TableResultBean ok(Long count, Object list){
        return new TableResultBean(TableResultBean.SUCCESS,"成功",count,list);
    }
}
